/*
 * Copyright (c) zhg2yqq.com Corp.
 * All Rights Reserved.
 */
package com.zhg2yqq.wheels.job.core;

import com.zhg2yqq.wheels.job.constant.JobConstant;

/**
 * @author zhg2yqq, 2023年11月14日
 * @version zhg2yqq v1.0
 */
public class JobScheduleParameter extends JobParameter {
    private static final long serialVersionUID = 1L;
    // 支持并发执行
    private boolean concurrent;
    // 周期性执行cron表达式
    private String cronExpression;
    // 0默认，1立即触发执行，2触发一次执行，3不触发立即执行
    private String misfirePolicy;
    // 状态
    private JobConstant.Status status;

    public JobScheduleParameter(String key, String group) {
        super(key, group);
    }

    public JobScheduleParameter(String key) {
        super(key);
    }

    public boolean isConcurrent() {
        return concurrent;
    }

    public void setConcurrent(boolean concurrent) {
        this.concurrent = concurrent;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getMisfirePolicy() {
        return misfirePolicy;
    }

    public void setMisfirePolicy(String misfirePolicy) {
        this.misfirePolicy = misfirePolicy;
    }

    public JobConstant.Status getStatus() {
        return status;
    }

    public void setStatus(JobConstant.Status status) {
        this.status = status;
    }
}
